home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 February / PCWorld_2000-02_cd.bin / Software / Vyzkuste / xsetup / _SETUP.2 / Group3 / XQ Win9x File System 1.xpl < prev    next >
Text File  |  1999-08-30  |  1KB  |  49 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 3.1"
  2. "TYPE"="6"
  3. "COUNT"="1"
  4. "UIPATH"="System\File System\Options"
  5. "NAME"="Windows 9x Options"
  6. "VERSION"="1.003"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Use enhanced file allocation cache"
  9. "DESCRIPTION 1"="Activating this option will boost your performance."
  10. "AUTHOR"="Xteq Systems"
  11. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  12. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@gmx.net."
  13. "COMMENT 2"="Thanks to CptSiskoX for his help and AXCEL216 for the setting!"
  14.  
  15.  
  16. sP="HKEY_LOCAL_MACHINE\System\CurrentControlSet\control\FileSystem\ContigFileAllocSize" 'DW:512
  17. Sub Plugin_Initialize 
  18.  if GetWinVer=1 or GetWinVer=3 then
  19.     i=RegReadValue(sP)
  20.     if i=512 then
  21.        SetUIElement 1,true
  22.     end if
  23.  else
  24.     Disable
  25.  end if
  26.  
  27. End Sub
  28.  
  29. Sub Plugin_CheckData(ElementIndex)
  30. End Sub
  31.  
  32. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  33.  b=GetUIElement(1)
  34.  if b=true then
  35.     Call RegWriteValue(sp,512,2)
  36.  else 
  37.     s=RegReadValue(sP)
  38.     if IsEmpty(s)=false then
  39.        Call RegDeleteValue(sP)
  40.     end if
  41.  end if
  42.  
  43.  
  44.  Call Restart()
  45. End Sub
  46.  
  47. Sub Plugin_Terminate 
  48. End Sub
  49.